home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / grafica / pvrgjpeg / makefile < prev    next >
Makefile  |  1999-01-01  |  2KB  |  61 lines

  1. ###########################################################
  2. # The makefile for the JPEG program.
  3. # There should be no changes for most UNIX compilers.
  4. ###########################################################
  5. #
  6. #  For sysv substitute the following terms: 
  7. #  SYSV allows for SYSV system IO calls.  NOTRUNCATE allows
  8. #  for UNIX emulators without the ftruncate() call.
  9. #
  10. #DEFINES = -DSYSV -DNOTRUNCATE
  11. #
  12.  
  13. DEFINES = 
  14. JFLAGS = -O
  15. DEFS = system.h globals.h prototypes.h param.h
  16. BASELINE =  jpeg.o codec.o huffman.o io.o chendct.o leedct.o lexer.o marker.o stream.o transform.o
  17.  
  18. .c.o:
  19.     cc $(JFLAGS) $(DEFINES) -c $*.c 
  20.  
  21. .c.ln:
  22.     lint -c $*.c 
  23.  
  24. all: jpeg
  25.  
  26. clean:
  27.     rm *.o jpeg
  28.  
  29. jpeg: $(BASELINE) 
  30.     cc $(DEFINES) $(JFLAGS) $(BASELINE) -lm -o jpeg
  31.  
  32. jpeg.o: jpeg.c $(DEFS) tables.h
  33. codec.o: codec.c $(DEFS)
  34. huffman.o: huffman.c $(DEFS) stream.h
  35. io.o: io.c $(DEFS)
  36. chendct.o: chendct.c $(DEFS)
  37. leedct.o: leedct.c $(DEFS)
  38. lexer.o: lexer.c $(DEFS) tables.h stream.h
  39. marker.o: marker.c $(DEFS) marker.h stream.h
  40. stream.o: stream.c $(DEFS) marker.h stream.h
  41. transform.o: transform.c dct.h $(DEFS)
  42.  
  43. lcheck: jpeg.ln codec.ln huffman.ln io.ln chendct.ln leedct.ln lexer.ln marker.ln stream.ln transform.ln
  44.     lint jpeg.ln codec.ln huffman.ln io.ln chendct.ln leedct.ln lexer.ln marker.ln stream.ln transform.ln
  45.  
  46. #
  47. # Should you wish to modify the interpreter
  48. # modify this portion here.
  49. #
  50. # Make sure that you move the first comment from the start to 
  51. # within the braces %{ /* */ %} in lexer.l,
  52. # otherwise it will give you a error (definitions too long). 
  53. #
  54. #  Caution: Sometimes -ll is required.
  55. #
  56. #
  57. #lexer.c: lexer.l
  58. #    lex lexer.l
  59. #    mv lex.yy.c lexer.c
  60. #
  61.